#
# This file sets up include directories, link directories, and
# compiler settings for a project to use MIPS.  It should not be
# included directly, but rather through the MIPS_USE_FILE setting
# obtained from MIPSConfig.cmake.
#


# Load the compiler settings used for MIPS.
IF(YukiFEM_BUILD_SETTINGS_FILE)
  INCLUDE(${CMAKE_ROOT}ModulesCMakeImportBuildSettings.cmake)
  CMAKE_IMPORT_BUILD_SETTINGS(${YukiFEM_BUILD_SETTINGS_FILE})
ENDIF(YukiFEM_BUILD_SETTINGS_FILE)

# Add compiler flags needed to use YukiFEM.
SET(CMAKE_C_FLAGS   ${CMAKE_C_FLAGS} ${YukiFEM_REQUIRED_C_FLAGS})
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${YukiFEM_REQUIRED_CXX_FLAGS})

# Add include directories needed to use MIPS.
INCLUDE_DIRECTORIES(${YukiFEM_INCLUDE_DIRS})

# Add link directories needed to use MIPS.
LINK_DIRECTORIES(${YukiFEM_LIBRARY_DIRS})